//
//  HomeABargainCollectionViewCell.m
//  lmq
//
//  Created by 马田成 on 2017/3/14.
//  Copyright © 2017年 yuanxin. All rights reserved.
//

#import "HomeABargainCollectionViewCell.h"
#import "HomeABargainModel.h"
#import "UIImageView+WebCache.h"
@implementation HomeABargainCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.proprietaryLabel.layer.borderColor = [UIColor redColor].CGColor;
    self.proprietaryLabel.layer.borderWidth = 0.5f;
    
    
    // Initialization code
}
- (void)setModelOfABargain:(HomeABargainModel *)modelOfABargain{

    self.titleLabel.text = modelOfABargain.shop_name;
//    NSString *strPic = @"http://lmq.quyum.cn/";
//    
//    NSString *str = [strPic stringByAppendingString:modelOfABargain.shoppic];
    
    NSString *urlWare=modelOfABargain.shoppic;
    NSString *str=manage(AP_HOST, urlWare);
    
    NSString *strUrl = [str stringByReplacingOccurrencesOfString:@"\\" withString:@"/"];
    
    [self.image sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"liyi"]];
    
    
    NSString *str2 = @"¥";
    self.moneyLabel.text = [str2 stringByAppendingString:modelOfABargain.price];
    //    self.priceLabel.text = modelShopping.price;


}
@end
